def sort_list(seq=1,the_list=[]):
	if seq == 1:
		for i in range(0,len(the_list),1):
			for j in range(i+1,len(the_list),1):
				if the_list[i] > the_list[j]:
					the_list[i] , the_list[j] = the_list[j] , the_list[i]
		print("正序：",the_list)
	elif seq == 0:
		for i in range(0,len(the_list),1):
			for j in range(i+1,len(the_list),1):
				if the_list[i] < the_list[j]:
					the_list[i] , the_list[j] = the_list[j] , the_list[i]
		print("倒序：",the_list)
	else:
		print('seq值输入有误！！！')

if __name__ == '__main__':
 	sort_list(0,[2,4,1,5,2]) 
 	sort_list(1,[12,14,11,15,12])
 	sort_list(2,[12,14,11,15,12])
